#include "gofgame/common/ui/TableLayoutData.h"

using namespace gofgame::common::ui;

TableLayoutData::TableLayoutData() {
	this->rowSpan = 1;
	this->colSpan = 1;
}

Nullable<int> TableLayoutData::getRowIndex() const {
	return this->rowIndex;
}

void TableLayoutData::setRowIndex(Nullable<int> rowIndex) {
	if (this->rowIndex != rowIndex) {
		this->rowIndex = rowIndex;
		this->setParentLayoutDirty();
	}
}

Nullable<int> TableLayoutData::getColIndex() const {
	return this->colIndex;
}

void TableLayoutData::setColIndex(Nullable<int> colIndex) {
	if (this->colIndex != colIndex) {
		this->colIndex = colIndex;
		this->setParentLayoutDirty();
	}
}

int TableLayoutData::getRowSpan() const {
	return this->rowSpan;
}

void TableLayoutData::setRowSpan(int rowSpan) {
	if (this->rowSpan != rowSpan) {
		this->rowSpan = rowSpan;
		this->setParentLayoutDirty();
	}
}

int TableLayoutData::getColSpan() const {
	return this->colSpan;
}

void TableLayoutData::setColSpan(int colSpan) {
	if (this->colSpan != colSpan) {
		this->colSpan = colSpan;
		this->setParentLayoutDirty();
	}
}
